/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.world;

/**
 *
 * @author t
 */
public class team {
    public static team instance = null;
    public static int count =0;
    
        public static team getInstance() {
        if (instance == null) {
            try {
                instance = new team();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
        return instance;
    }
        public int teamid(){
            this.count+=1;
            int teamid = this.count;
            if(teamid == 2){
                this.count =0;
                teamid =0;
            }
            return teamid;
        }
    
}
